import React from 'React'
import {
    Image,
} from 'react-native'

import {createStackNavigator,createSwitchNavigator} from 'react-navigation'
import Login from '../pages/main/login'
import HomePage from '../pages/HomePage'

const AppStack = createStackNavigator({
    Home: {
        screen: HomePage
    },
});
const AuthStack = createStackNavigator({
    Login:{
        screen:Login,
        navigationOptions:{
            header: null,
        }
    }
});

export const AppSwitchNavigator = createSwitchNavigator({
    Auth:AuthStack,
    App:AppStack,

},{
    initialRouteName: 'Auth'
});






